package cz.acies.face.viewers;

import java.io.Serializable;

public class ShuttleListItemDefine implements Serializable
{
	private static final long serialVersionUID = -808698005940644142L;
	
	protected String id;
	protected String caption;
	protected Integer priority = 0;
	
	public ShuttleListItemDefine() {
	}

	public ShuttleListItemDefine(String id, String caption, int priority) {
		super();
		this.id = id;
		this.caption = caption;
		this.priority = priority;
	}

	public String toString() {
		return "" + caption + " [" + priority + "]";
	}

	// -----  -----------------------------------------------------------------
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public void priorityDec() { priority--; }
	
	public void priorityInc() { priority++; }

}
